﻿@model Guline.SupportCMS.Models.ViewModel.CategoryWithArticle 
<div class="posts_block mbf clearfix">
        <div class="title">
            <h4>@Model.Cat.Name</h4>
            <a class="feed toptip" title="Xem nhiều hơn" href="@Url.Action("Detail", "Subject", new { ID = Model.Cat.ID,Name=Guline.SupportCMS.Models.Utils.Utils.UrlRewriteString(Model.Cat.Name)  })">Xem thêm</a>
        </div>
        <!-- /title bar -->
        @{
            var first = Model.List.First();
            var nextlist = Model.List.Skip(1);
        }
        <div class="grid_6 alpha">

            <div class="mb hover-shadow">
                <a href="@Url.Action("Detail", "Content", new { ID = first.ID,Name=Guline.SupportCMS.Models.Utils.Utils.UrlRewriteString(first.Title)  })">
                    <img src="@first.Image" alt="@first.Title"></a>
            </div>
            <div class="post_m_content" style="margin-top: -30px">
                <h3><a href="@Url.Action("Detail", "Content", new { ID = first.ID,Name=Guline.SupportCMS.Models.Utils.Utils.UrlRewriteString(first.Title)  })" title="@first.Title">@first.Title</a> </h3>
                <div class="hotdescription">
                    @Html.Raw(HttpUtility.HtmlDecode(first.ShortDes))
                </div>
            </div>
        </div>
        <!-- /grid6 omega -->

        <div class="grid_6 omega">
            <div class="small_slider_music owl-carousel owl-theme">
                <div class="item clearfix">
                    @if (nextlist.Count() > 0)
                    {
                        <ul class="small_posts">
                            @foreach (var nw in nextlist)
                            {
                                <li class="clearfix">
                                    <a class="s_thumb hover-shadow" title="@nw.Title" href="@Url.Action("Detail", "Content", new { ID = nw.ID })">
                                        <img width="70" height="70" src="@nw.Image" alt="@nw.Title"></a>
                                    <h3><a href="@Url.Action("Detail", "Content", new { ID = nw.ID,Name=Guline.SupportCMS.Models.Utils.Utils.UrlRewriteString(nw.Title)  })">@nw.Title</a></h3>
                                    
                                </li>
                            }

                        </ul>
                    }
                </div>

            </div>
            <!-- /slides -->
        </div>
        <!-- grid6 omega -->
    </div>
    <!-- posts block Music -->